import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;


public class shuffle {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("src/gettysburg address")));
		BufferedReader br2 = new BufferedReader(new InputStreamReader(new FileInputStream("src/kids")));
		BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("src/gettysburg kids")));
		boolean flag = true;
		String input = "";
		while(flag){
			input = br.readLine();
			if(input != null){
				bw.write(input + "\n");
			}
			else{
				flag = false;
			}
			input = br2.readLine();
			if(input != null){
				bw.write(input + "\n");
			}
			else{
				flag = false;
			}
		}
		bw.flush();
		br.close();
		br2.close();
		bw.close();
	}

}
